package com.un.ebs.product.domain;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (ProductSkuDoc)表实体类
 *
 * @author liubo
 * @since 2020-11-18 17:31:55
 */
@Data
@Component
@TableName("tb_product_sku_doc")
@SuppressWarnings("serial")
public class ProductSkuDoc extends Model<ProductSkuDoc> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "sku_id",  length = 40 , precision = 0)
    private String skuId;
                
    @DbField(name = "version_code",  length = -1 , precision = 0)
    private Integer versionCode;
                
    @DbField(name = "design_url",  length = 200 , precision = 0)
    private String designUrl;
                
    @DbField(name = "design_desc",  length = 200 , precision = 0)
    private String designDesc;
                
    @DbField(name = "release_url",  length = 200 , precision = 0)
    private String releaseUrl;
                
    @DbField(name = "release_desc",  length = 200 , precision = 0)
    private String releaseDesc;
                
    @DbField(name = "is_last_version",  length = -1 , precision = 0)
    private Boolean isLastVersion;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at",  length = 40 , precision = 0)
    private String createAt;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at_name",  length = 200 , precision = 0)
    private String createAtName;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;
                
    @TableField(fill = FieldFill.UPDATE)    
    @DbField(name = "last_modified_at",  length = 40 , precision = 0)
    private String lastModifiedAt;
                
    @TableField(fill = FieldFill.UPDATE)    
    @DbField(name = "last_modified_time",  length = -1 , precision = 0)
    private Date lastModifiedTime;
                
    @DbField(name = "last_modified_at_name",  length = 200 , precision = 0)
    private String lastModifiedAtName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_at",  length = 40 , precision = 0)
    private String submitAt;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_at_name",  length = 100 , precision = 0)
    private String submitAtName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_time",  length = -1 , precision = 0)
    private Date submitTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_status",  length = -1 , precision = 0)
    private Boolean submitStatus;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_at",  length = 40 , precision = 0)
    private String auditAt;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_at_name",  length = 100 , precision = 0)
    private String auditAtName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_time",  length = -1 , precision = 0)
    private Date auditTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_status",  length = -1 , precision = 0)
    private Boolean auditStatus;
            
    @TableLogic        
    @DbField(name = "is_delete",  length = -1 , precision = 0)
    private Boolean isDelete;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}